package br.com.marcio.obj;

import java.util.Vector;

public class Group {

    private int index;
    private String name;
    private Vector<Face> faces;
    private boolean selected;
    
//    private Material material;


    public Group(String name, int index) {
        this.name = name;
        this.index = index;
        this.faces = new Vector<Face>();
        this.selected = false;
    }

    public void addFace(Face f) {
        faces.add(f);
    }

    public int getIndex() {
        return index;
    }

    public String getName() {
        return name;
    }

    public Vector<Face> getFaces() {
        return faces;
    }

//    public Material getMaterial() {
//        return material;
//    }

    public boolean isSelected() {
        return selected;
    }

    public void select() {
        selected = true;
    }

    public void deselect() {
        selected = false;
    }
}